package cn.wolfcode.wolf2w.repository;


import cn.wolfcode.wolf2w.domain.Destination;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface DestinationRepository extends MongoRepository<Destination,String> {


    List<Destination> findByIdIn(List<String> ids);

    List<Destination> findByParentName(String parentName);

    List<Destination> findByParentId(String id, Pageable pageable);

    Destination findByName(String keyword);
}
